l = ['Abandoned Mine',
'Altar',
'Armory',
'Band of Misfits',
'Bandit Camp',
'Beggar',
'Catacombs',
'Count',
'Counterfeit',
'Cultist',
'Dame Anna',
'Dame Josephine',
'Dame Molly',
'Dame Natalie',
'Dame Sylvia',
'Death Cart',
'Feodum',
'Forager',
'Fortress',
'Graverobber',
'Hermit',
'Hovel',
'Hunting Grounds',
'Ironmonger',
'Junk Dealer',
'Madman',
'Marauder',
'Market Square',
'Mercenary',
'Mystic',
'Necropolis',
'Overgrown Estate',
'Pillage',
'Poor House',
'Procession',
'Rats',
'Rebuild',
'Rogue',
'Ruined Library',
'Ruined Market',
'Ruined Village',
'Sage',
'Scavenger',
'Sir Bailey',
'Sir Destry',
'Sir Martin',
'Sir Michael',
'Sir Vander',
'Spoils',
'Squire',
'Storeroom',
'Survivors',
'Urchin',
'Vagrant',
'Wandering Minstrel',
]

import os
path = "C:\\wamp\\www\\Dominion\\Cards\\DarkAges\\"
template = "<?php\n\n/*\n*\n*\n*/\n\n\nclass XXX extends Card implements iAction, iKingdom, iDarkAges {\npublic function __construct() {\nparent::__construct(\"YYY\", Y);\n}\n\npublic function getDescription() {\nreturn array(\n\"\",\n\"\");\n}\n\npublic function play(Game $game, $isRealCard) {\n}\n}\n?>"
for n in l:
    if n:
        nShort = n.replace(" ","")
        print "\""+n+"\","
        #tempTemplate = template.replace("XXX",nShort)
        #tempTemplate = tempTemplate.replace("YYY", n)
        #f = file(path+""+nShort+".php",'w')
        #f.write(tempTemplate)
        #f.close()

print tempTemplate
